/**
 * @author hoang.pt
 * @version $Id$
 */

package test1.problem1;

import java.io.Serializable;

/**
 *
 * @author hoang.pt
 */
public class Fan implements Serializable{

    String model;

    double power;

    boolean isRemoteControl;

    public Fan() {
    }

    public Fan(String model, double power, boolean isRemoteControl) {
        this.model = model;
        this.power = power;
        this.isRemoteControl = isRemoteControl;
    }

    @Override
    public String toString() {

        return "Fan has model: " +model+ ", power: " +power+ ", remote control: " +isRemoteControl+ " ";
    }

    public boolean isIsRemoteControl() {
        return isRemoteControl;
    }

    public void setIsRemoteControl(boolean isRemoteControl) {
        this.isRemoteControl = isRemoteControl;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public double getPower() {
        return power;
    }

    public void setPower(double power) {
        this.power = power;
    }

    

}
